package com.twetec.cms.model.po.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.twetec.cms.model.po.base.BasePO;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author zhxl
 * @since 2020-10-28
 */
@TableName("SYSTEM_PERMISSION")
public class PermissionPO extends BasePO {

    private static final long serialVersionUID=1L;

    /**
     * 上级权限ID
     */
    @TableField("PID")
    private Long pid;

    /**
     * 权限名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 权限标识
     */
    @TableField("SLUG")
    private String slug;

    /**
     * 类型:MENU菜单,BUTTON按钮
     */
    @TableField("TYPE")
    private String type;

    /**
     * 请求路径
     */
    @TableField("HTTP_PATH")
    private String httpPath;

    /**
     * 数据域
     */
    @TableField("DATA_ORG")
    private String dataOrg;

    /**
     * 工会权限id

     */
    @TableField("UNION_PERMISSION_ID")
    private Long unionPermissionId;

    /**
     * 工会权限父id
     */
    @TableField("UNION_PID")
    private Long unionPid;


    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSlug() {
        return slug;
    }

    public void setSlug(String slug) {
        this.slug = slug;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getHttpPath() {
        return httpPath;
    }

    public void setHttpPath(String httpPath) {
        this.httpPath = httpPath;
    }

    public String getDataOrg() {
        return dataOrg;
    }

    public void setDataOrg(String dataOrg) {
        this.dataOrg = dataOrg;
    }

    public Long getUnionPermissionId() {
        return unionPermissionId;
    }

    public void setUnionPermissionId(Long unionPermissionId) {
        this.unionPermissionId = unionPermissionId;
    }

    public Long getUnionPid() {
        return unionPid;
    }

    public void setUnionPid(Long unionPid) {
        this.unionPid = unionPid;
    }

    @Override
    public String toString() {
        return "PermissionPO{" +
        "pid=" + pid +
        ", name=" + name +
        ", slug=" + slug +
        ", type=" + type +
        ", httpPath=" + httpPath +
        ", dataOrg=" + dataOrg +
        ", unionPermissionId=" + unionPermissionId +
        ", unionPid=" + unionPid +
        "}";
    }
}
